/**
 * description
 * <p>fill description</p>
 * @author zido
 * @since 2017/5/31 0031
 */
import {injectReducer } from '../../store/reducers'

export default (store) => ({
  path: '/counter',
  breadcrumbName:'计算器',
  getComponent(nextState,cb){
    require.ensure([],(require)=>{
      const Counter = require('./containers/CounterContainer').default
      const reducer = require('./modules/counter').default

      injectReducer(store,{key:'counter',reducer})

      cb(null,Counter)
    },'counter')
  }
})